package com.phoebe.auth.dao;

import com.phoebe.auth.entity.ClientSecret;
import com.phoebe.auth.entity.ClientSecretStatus;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.UUID;


@Component
public interface ClientSecretDAO {

    int create(ClientSecret clientSecret);

    String getScope(String clientId, String clientSecret);

    List<ClientSecret> get(ClientSecret clientSecret);

    int updateStatusByTenantId(UUID tenantId, ClientSecretStatus status);

    int updateStatusByClientId(String clientId, ClientSecretStatus status);

    int update(ClientSecret clientSecret);
}